﻿using Microsoft.EntityFrameworkCore;
using System;

namespace Wo_months.Models
{
    public class Wo_monthsDBContext : DbContext
    {
        //public Wo_monthsDBContext()
        //{

        //}

        public Wo_monthsDBContext(DbContextOptions<Wo_monthsDBContext> options) : base(options)
        {

        }

        public DbSet<English> Englishes { get; set; }

        public DbSet<Group> Groups { get; set; }

        //protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        //{
        //    if (!optionsBuilder.IsConfigured)
        //    {
        //        optionsBuilder.UseSqlServer(
        //        @"Server=.;Database=Wo_monthsDB;uid=sa;pwd=123456");
        //    }
        //}


    }
}
